package com.wkk.service;

import com.wkk.entity.*;

import java.util.List;

public interface ChatService {

    //获取满足条件的所有朋友圈信息
    User queryChatRecordByCondition(Integer uid,String condition,Integer fan);

    //点赞
    void likeOneChat(ChatLike chatLike);

    //消赞
    void dislikeOneChat(ChatLike chatLike);

    //关注用户
    void attentionOne(ChatUser chatUser);

    //取关用户
    void notAttentionOne(ChatUser chatUser);

    //发表评论
    boolean addComment(ChatComment chatComment);

    //删除评论
    boolean deleteComment(Integer ccid);

    //获取某用户的所有评论
    List<ChatComment> queryCommentByUid(Integer uid);

    //发布朋友圈
    void addChatRecord(ChatRecord chatRecord);

    //删除朋友圈
    void deleteChatRecord(Integer crid);

    //限制用户权限
    void restrictOne(Integer uid,Integer level);

    //释放用户权限
    void releaseOne(Integer uid);

    //获取当前用户的限制权限等级
    Integer selectLevelByUid(Integer uid);
}
